package com.zjitc.p;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/13 15:08
 * @description:
 */
public class C implements M{
  private A a;

  public C(A a) {
    this.a = a;
  }
@Override//用于重写父类方法的注解
  public void a(){
   System.out.println("into a...");
   a.a();
    System.out.println("destroy b....");
 }
 @Override
 public void b(){
   System.out.println("into b....");
   a.b();
   System.out.println("destroy b....");
 }
}
